
//获取标签
var inputs = document.querySelectorAll('input');
var loginBtn = document.querySelector('button');

//绑定点击事件
loginBtn.onclick = () => {

    axios.post('/user/login', { mingchen: inputs[0].value, bianma: inputs[1].value }).then((res) => {
        console.log(res.data);
        location.href = './index.html'
    })
}
